{extend name="index@common/base"/} 
{block name="style"}
{/block} {block name="body"}
<div class="layui-body layui-tab-content index-body" id="cont">
	<div class="park-navigation">
		<div class="navigation-icon">
			<i class="fa {$breadCrumb[0]['icon']}"></i>
		</div>
		<div class="navigation-menu">
			<h2>{$breadCrumb[0]['title']}</h2>
			{if isset($breadCrumb[1])}
			<p>{$breadCrumb[0]['remark']}</p>
			{/if}
		</div>
	</div>
	<div class="park-content">
		<div class="content-title">
			<div class="title col-9">
				<h3>{$breadCrumb[1]['title']}</h3>
				<form class="layui-form" action="{:url('audit/apply/search')}" onsubmit="return false;">
					<button class="search-btn" lay-submit lay-filter="search"><img src="__STATIC__/img/base/topsearch01.png"></button>
					<select name="wftype">
						<option value="">审核类型</option>
						{volist name="wftypeList" id="item"}
						<option value="{$item.subsystemNo}">{$item.subsystemName}</option>
						{/volist}
					</select>
				</form>	
			</div>
			<div class="tool col-1">
				<button id="reload"><i class="fa fa-refresh"></i></button>
			</div>
		</div>
		<table class="layui-hide" id="wfitem" lay-filter="wfitem" data-url="{:url('audit/apply/index')}"></table>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__JS__/audit/apply.js"></script>
<script type="text/html" id="itemTemplet">
	<p><span>[{{d.wfType}}]</span> {{d.title}}</p>
</script>
<script type="text/html" id="status">
<div>
	{{# if (d.status === 0){ }}
		<p class="badge-audit-state pending-approval"></p>
	{{# }}}
	{{# if (d.status == 1){ }}
		<p class="badge-audit-state under-review"></p>
	{{# }}}
	{{# if (d.status == 2){ }}
		<p class="badge-audit-state check-success"></p>
	{{# }}}
	{{# if (d.status == 3){ }}
		<p class="badge-audit-state check-deny"></p>
	{{# }}}
	{{# if (d.status == 4){ }}
		<p class="badge-audit-state check-ignore"></p>
	{{# }}}
</div>
</script>
<script type="text/html" id="progress">
	<div class="layui-progress layui-progress-big" lay-showPercent="true">
  		<div class="layui-progress-bar layui-bg-green" style="width:{{d.progress}}%">
			<span class="layui-progress-text">{{d.progress}}%</span>
		</div>
	</div>
</script>
<script type="text/html" id="toolDemo">
	<div>
		<a class="layui-btn btn-edit" lay-event="process" id="process_{{d.id}}" data-url="{:url('audit/apply/process')}?itemId={{d.id}}"><i class="fa fa-list"></i></a>
	</div>
</script>
{/block}

